package com.stylefeng.guns.modular.platform.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 平台用户抽奖记录表
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-26
 */
@TableName("platform_user_lottery")
public class UserLottery extends Model<UserLottery> {

    public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 活动id
     */
    @TableField("activity_id")
    private Integer activityId;
    /**
     * 奖项id
     */
    @TableField("awards_id")
    private Integer awardsId;
    /**
     * 抽奖支出（金币等）
     */
    @TableField("lottery_expend")
    private Double lotteryExpend;
    /**
     * 状态 ：0-未中奖，1-中奖
     */
    private Integer status;
    /**
     * 创建人
     */
    @TableField("create_id")
    private String createId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    
    @TableField(exist = false)
    private String userName;
    
    @TableField(exist = false)
    private String activityName;
    
    @TableField(exist = false)
    private String awardsName;
    
    @TableField(exist = false)
    private String awardsValue;
    
    @TableField(exist = false)
    private String statusName;
    
    @TableField(exist = false)
    private String appId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getAwardsId() {
        return awardsId;
    }

    public void setAwardsId(Integer awardsId) {
        this.awardsId = awardsId;
    }

    public Double getLotteryExpend() {
        return lotteryExpend;
    }

    public void setLotteryExpend(Double lotteryExpend) {
        this.lotteryExpend = lotteryExpend;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateId() {
        return createId;
    }

    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getAwardsName() {
		return awardsName;
	}

	public void setAwardsName(String awardsName) {
		this.awardsName = awardsName;
	}

	public String getAwardsValue() {
		return awardsValue;
	}

	public void setAwardsValue(String awardsValue) {
		this.awardsValue = awardsValue;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public void setCreateId(String createId) {
        this.createId = createId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserLottery{" +
        "id=" + id +
        ", userId=" + userId +
        ", activityId=" + activityId +
        ", awardsId=" + awardsId +
        ", lotteryExpend=" + lotteryExpend +
        ", status=" + status +
        ", createId=" + createId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
